package com.olddriver.crm.service;

import com.olddriver.crm.domain.Carproduct;
import com.olddriver.crm.domain.InsuranceList;
import com.olddriver.crm.page.PageResult;
import com.olddriver.crm.query.QueryObject;

import java.util.List;

public interface IInsuranceListService {

    int deleteByPrimaryKey(Long id);

    int insert(InsuranceList record,Long[] ids);

    InsuranceList selectByPrimaryKey(Long id);

    List<InsuranceList> selectAll();

    int updateByPrimaryKey(InsuranceList record,Long[] ids);

    PageResult query(QueryObject qo);

    void refuse(Long id);

    void prepareAudit(Long id);

    void passAudit(Long id);

    void sendBack(Long id);

    List<Carproduct> getCarproductByInsuId(Long id);

    int getUndealOrder();

    int getUnpaidOrder();

}
